<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   	xmlns:f="http://xmlns.jcp.org/jsf/core"
   	xmlns:h="http://xmlns.jcp.org/jsf/html"
   	xmlns:p="http://primefaces.org/ui"   
   	xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
   	
	<h:outputText value="红色" rendered="#{color == 'red'}" />
	<h:outputText value="绿色" rendered="#{color == 'green'}" />
	<h:outputText value="黄色" rendered="#{color == 'yellow'}" />
	<h:outputText value="蓝色" rendered="#{color == 'blue'}" />
	<h:outputText value="橘色" rendered="#{color == 'orange'}" />

</ui:composition>